package com.youkeyi.ddy.cloud.common.api.basic.crm.config;

import com.youkeyi.ddy.cloud.common.api.basic.crm.config.dto.CrmCustomerInputConfigListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * CrmCustomerInputConfigCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmCustomerInputConfigCloudServiceFallback.class)
@RequestMapping("/crm/customer/input/config")
public interface CrmCustomerInputConfigCloudService {

    /**
     * 查询配置列表.
     *
     * @param param the param
     * @return the customer input config list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmCustomerInputConfigListCloudDto query(@RequestBody CrmCustomerInputConfigQueryCloudParam param);

    /**
     * 新增配置.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmCustomerInputConfigCreateCloudParam param);

    /**
     * 编辑配置.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmCustomerInputConfigUpdateCloudParam param);

    /**
     * 删除配置.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody CrmCustomerInputConfigDeleteCloudParam param);
    
}
